<template>
	<view>
		<view class="powerinfo">
			<rich-text :nodes="privacy"></rich-text>
		</view>
	</view>
	
</template>

<script>
	export default {
		data() {
			return {
				error: true,
				msg: null,
				privacy:'',
			}
		},
		onShow() {
				this.init();
		},
		methods: {
           init(){
			   let token = this.tui.getToken();
			   let datas={
			   	token: token,
			   };
			   let result=this.tui.request('article','post',datas,1000,1,'','privacy');
			   Promise.resolve(result).then((value)=>{
			      if(value.code==200){
			      	this.privacy=value.data.content;
					
					this.privacy=value.data.content.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ')
					
    this.privacy=value.data.content
			      }else{
			      	this.tui.toast(value.message);
			      }
			   })
		   }

		}
	}
</script>

<style>
	
	page {
		background-color: #F5F5F5;
	}
	.bgs{
		
	}
	.powerbg{
		width:100%;
		height: auto;
		display: block;
		margin-bottom: 20rpx;
	}
	.powerinfo{
		background:#fff;
		margin:0 20rpx 0 20rpx;
		padding:40rpx;
		border-radius: 20rpx;
		
	}
</style>
